//导入mysql包
const mysql=require('mysql')

//新建mysql连接池
const db=mysql.createPool({
    // host:"mysql.sqlpub.com",
    // host:'8.136.191.17',
    host:'127.0.0.1',
    port:3306,
    // user:'vihanwoo',
    user:'root',
    password:'123456',
    database:'vihanblog'
})


module.exports=db